package net.shopxx.service;

import net.shopxx.entity.AccountsItem;
import net.shopxx.excel.excel.ExcelFile;
import net.shopxx.pager.AccountsPageable;
import net.shopxx.pager.Page;

/**
 * 账目处理服务
 * 
 * @author frankie
 *
 */
public interface AccountsService extends BaseService<AccountsItem, Long> {

	/**
	 * 处理淘宝订单
	 * 
	 * @param ef
	 */
	void dealWithTbOrder(ExcelFile ef);

	/**
	 * 获取统计信息
	 * 
	 * @param pageable
	 * @return 统计信息
	 */
	Page<AccountsItem> findStatsPage(AccountsPageable pageable);

	/**
	 * 获取统计总金额
	 * 
	 * @param pageable
	 * @return 捅进总金额
	 */
	Float findStatsSum(AccountsPageable pageable);

	/**
	 * 获取统计总笔数
	 * 
	 * @param pageable
	 * @return 捅进总笔数
	 */
	Long findStatsCount(AccountsPageable pageable);

}
